package com.ant.storage.mapper;

import com.ant.storage.pojo.BusinessOut;
import com.ant.storage.pojo.BusinessOutCommodity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BusinessOutMapper extends BaseMapper<BusinessOut>{

    //业务出库查询
    List<BusinessOut> queryAllocation(Integer page, Integer limit, @Param("map") Map map);
    //业务出库中间表更新
    void updateBusinessOutCommodity(Integer business_out_id, Integer commodityId, Integer warehouse_id, Integer business_out_number);

    Integer countBusinessOut(@Param("map") Map map);

    //业务出库商品中间表添加
    void addBusinessOutCommodity(Integer business_out_id,Integer commodity_id,Integer apply_number);
}
